package com.molichuxing.services.infrastructure.service;

import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.infrastructure.dto.request.create.GoodsSpecCreateDto;
import com.molichuxing.services.infrastructure.dto.response.GoodsSpecDto;

import java.util.List;
import java.util.Map;

/**
 * 单服务 商品规格表
 * @author xuelin yi
 */
public interface GoodsSpecService extends RootService {

    /**
     * 根据商品id集合查询商品规格信息
     * @param goodsIdList
     * @param specId
     * @return
     */
    public Map<Integer, List<GoodsSpecDto>> getGoodsProductSpecList(List<Integer> goodsIdList, List<Integer>  specId);

    /**
     * 根据商品id集合查询商品规格信息
     * @param goodsId
     * @param specId
     * @return
     */
    public List<GoodsSpecDto> getGoodsProductSpecList(Integer goodsId, List<Integer>  specId);

    /**
     * 插入商品和规格的关联关系信息
     * @param goodsSpecList
     * @return
     */
    public int createGoodsProductSpec(List<GoodsSpecCreateDto> goodsSpecList);
}
